#!/usr/bin/env python
# vim: set fileencoding=UTF-8

###############################################################################
#
# filename:  xaze_installer.py
#
# purpose:   Xaze desksuite installer
#
# author(s): Alessandro Molari (mola89.molarulez.com)
#            Luca Molari
#
# license:   This file is licensed under the GPLv2
#            For more informations read:
#            http://www.gnu.org/licenses/gpl-2.0.txt
#
# part of:   This file is a part of the XazeInstaller
#
###############################################################################


"""
External XazeInstaller
Proxy module between user and the core of XazeInstaller
"""




if __name__ == "__main__":

    # imports
    import os.path
    import sys
    import install
    
    # append to the PATH envvar the base package path
    sys.path.append(os.path.abspath(sys.argv[1]))

    # installer object that represents the xaze-desksuite installation
    xaze_installer = install.Installer(os.path.abspath(sys.argv[1]), \
                                       sys.argv[2])
    
    # start the install process
    xaze_installer.install()

